//
//  DDEmojiToolBar.swift
//  swift微博
//
//  Created by whitcast on 16/7/21.
//  Copyright © 2016年 whitcast. All rights reserved.
//

import UIKit

class DDEmojiToolBar: UIToolbar {
    //stackView
    var stackView = DDStackView(frame: CGRectZero)
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        //设置UI
        setUpUI()
        
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    // MARK: -- 设置UI
    private func setUpUI() {
        //添加
        addSubview(stackView)
        //约束
        stackView.snp_makeConstraints { (make) -> Void in
            make.edges.equalTo(self.snp_edges).offset(UIEdgeInsetsZero)
        }
        
        
    }
    
}
